Optimal. Leaf size=38 \[ -\frac {2 \log \left (a+b \sqrt {x}\right )}{a^2}+\frac {\log (x)}{a^2}+\frac {2}{a \left (a+b \sqrt {x}\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {266, 44} \[ -\frac {2 \log \left (a+b \sqrt {x}\right )}{a^2}+\frac {\log (x)}{a^2}+\frac {2}{a \left (a+b \sqrt {x}\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 266
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \sqrt {x}\right )^2 x} \, dx &=2 \operatorname {Subst}\left (\int \frac {1}{x (a+b x)^2} \, dx,x,\sqrt {x}\right )\\ &=2 \operatorname {Subst}\left (\int \left (\frac {1}{a^2 x}-\frac {b}{a (a+b x)^2}-\frac {b}{a^2 (a+b x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {2}{a \left (a+b \sqrt {x}\right )}-\frac {2 \log \left (a+b \sqrt {x}\right )}{a^2}+\frac {\log (x)}{a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 33, normalized size = 0.87 \[ \frac {\frac {2 a}{a+b \sqrt {x}}-2 \log \left (a+b \sqrt {x}\right )+\log (x)}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.39, size = 67, normalized size = 1.76 \[ \frac {2 \, {\left (a b \sqrt {x} - a^{2} - {\left (b^{2} x - a^{2}\right )} \log \left (b \sqrt {x} + a\right ) + {\left (b^{2} x - a^{2}\right )} \log \left (\sqrt {x}\right )\right )}}{a^{2} b^{2} x - a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 36, normalized size = 0.95 \[ -\frac {2 \, \log \left ({\left | b \sqrt {x} + a \right |}\right )}{a^{2}} + \frac {\log \left ({\left | x \right |}\right )}{a^{2}} + \frac {2}{{\left (b \sqrt {x} + a\right )} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 35, normalized size = 0.92 \[ \frac {2}{\left (b \sqrt {x}+a \right ) a}+\frac {\ln \relax (x )}{a^{2}}-\frac {2 \ln \left (b \sqrt {x}+a \right )}{a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.88, size = 34, normalized size = 0.89 \[ \frac {2}{a b \sqrt {x} + a^{2}} - \frac {2 \, \log \left (b \sqrt {x} + a\right )}{a^{2}} + \frac {\log \relax (x)}{a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 32, normalized size = 0.84 \[ \frac {2}{a\,\left (a+b\,\sqrt {x}\right )}-\frac {4\,\mathrm {atanh}\left (\frac {2\,b\,\sqrt {x}}{a}+1\right )}{a^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.47, size = 151, normalized size = 3.97 \[ \begin {cases} \frac {\tilde {\infty }}{x} & \text {for}\: a = 0 \wedge b = 0 \\\frac {\log {\relax (x )}}{a^{2}} & \text {for}\: b = 0 \\- \frac {1}{b^{2} x} & \text {for}\: a = 0 \\\frac {a \sqrt {x} \log {\relax (x )}}{a^{3} \sqrt {x} + a^{2} b x} - \frac {2 a \sqrt {x} \log {\left (\frac {a}{b} + \sqrt {x} \right )}}{a^{3} \sqrt {x} + a^{2} b x} + \frac {2 a \sqrt {x}}{a^{3} \sqrt {x} + a^{2} b x} + \frac {b x \log {\relax (x )}}{a^{3} \sqrt {x} + a^{2} b x} - \frac {2 b x \log {\left (\frac {a}{b} + \sqrt {x} \right )}}{a^{3} \sqrt {x} + a^{2} b x} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________